<?php
// Call {className}Test::main() if this source file is executed directly.
if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', '{className}Test::main');
}

require_once 'PHPUnit/Framework.php';{requireClassFile}


class {className}Test extends PHPUnit_Framework_TestCase {
    
    public static function main() {
        require_once 'PHPUnit/TextUI/TestRunner.php';

        $suite  = new PHPUnit_Framework_TestSuite('{className}Test');
        $result = PHPUnit_TextUI_TestRunner::run($suite);
    }

    
    protected function setUp() {
    }

    
    protected function tearDown() {
    }
{methods}}

// Call {className}Test::main() if this source file is executed directly.
if (PHPUnit_MAIN_METHOD == '{className}Test::main') {
    {className}Test::main();
}
?>
